
package com.shop.cloud.mall.admin.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shop.cloud.common.core.constant.CacheConstants;
import com.shop.cloud.mall.admin.mapper.ActiveBorderRelationMapper;
import com.shop.cloud.mall.admin.service.ActiveBorderRelationService;
import com.shop.cloud.mall.common.entity.ActiveBorderRelation;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.stereotype.Service;

/**
 * 活动边框关联表
 *
 * @author
 * @date 2023-03-27 17:15:55
 */
@Service
public class ActiveBorderRelationServiceImpl extends ServiceImpl<ActiveBorderRelationMapper, ActiveBorderRelation> implements ActiveBorderRelationService {

    @Override
    @CacheEvict(value = CacheConstants.MALL_ACTIVE_BORDER_RELATION_ID, key = "#queryWrapper.entity.activeBorderId")
    public boolean remove(Wrapper<ActiveBorderRelation> queryWrapper) {
        return super.remove(queryWrapper);
    }
}
